package com.jucai.pppeiyouclient.view.activity;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.view.View;
import android.widget.TextView;

import com.fm.openinstall.OpenInstall;
import com.fm.openinstall.listener.AppInstallListener;
import com.fm.openinstall.model.AppData;
import com.fm.openinstall.model.Error;
import com.jucai.pppeiyouclient.MainActivity;
import com.jucai.pppeiyouclient.R;
import com.jucai.pppeiyouclient.base.BaseActivity;
import com.jucai.pppeiyouclient.utils.ActivityCollector;
import com.jucai.pppeiyouclient.utils.FirstLaunchUtils;
import com.jucai.pppeiyouclient.utils.LoginUtils;

import org.json.JSONException;
import org.json.JSONObject;


public class SystemMsgDeatil extends BaseActivity {

    private TextView contentTv;

    @Override
    protected void initView(Bundle savedInstanceState) {
        setContentView(R.layout.activity_system_msg_detail);
    }
    @Override
    protected void onDestroy() {
        super.onDestroy();
    }

    @Override
    protected void initData() {
        Intent intent = getIntent();
        String title = intent.getStringExtra("mail_title");
        String text = intent.getStringExtra("mail_text");
        ((TextView) findViewById(R.id.common_title_text)).setText(title);
        contentTv = (TextView)this.findViewById(R.id.content);
        contentTv.setText(text);
    }

    @Override
    protected void loadNetData() {

    }

    @Override
    protected void setListener() {
        findViewById(R.id.common_back).setOnClickListener(this);
        findViewById(R.id.common_home_back).setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()){
            case R.id.common_back:
                ActivityCollector.removeActivity(this);
                break;

            case R.id.common_home_back:
                startActivity(new Intent(SystemMsgDeatil.this, MainActivity.class));
                ActivityCollector.removeActivity(this);
                break;
        }
    }
}

